package com.eastfair.home.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.eastfair.core.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import com.eastfair.core.base.entity.SuperEntity;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.eastfair.home.enumeration.HomeServiceItemAuditStateEnum;
import com.eastfair.home.enumeration.HomeServiceItemServiceStateEnum;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 服务项
 * </p>
 *
 * @author linan
 * @since 2022-07-28
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "HomeServiceItemUpdateDTO", description = "服务项")
public class HomeServiceItemUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "请填写主键", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 来源服务id
     */
    @ApiModelProperty(value = "来源服务id")
    private Long sourceId;
    /**
     * 来源系统
     */
    @ApiModelProperty(value = "来源系统")
    @Size(max = 255, message = "来源系统长度不能超过255")
    private String sourceProvider;
    /**
     * 是否启用（确认状态）：1是 已确认；0否 未确认
     */
    @ApiModelProperty(value = "是否启用（确认状态）：1是 已确认；0否 未确认")
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 服务名称
     */
    @ApiModelProperty(value = "服务名称")
    @Size(max = 255, message = "服务名称长度不能超过255")
    private String serviceName;
    /**
     * 服务编号
     */
    @ApiModelProperty(value = "服务编号")
    @Size(max = 64, message = "服务编号长度不能超过64")
    private String serviceNo;
    /**
     * 服务图片
     */
    @ApiModelProperty(value = "服务图片")
    @Size(max = 255, message = "服务图片长度不能超过255")
    private String picUrl;
    /**
     * 服务分类id
     */
    @ApiModelProperty(value = "服务分类id")
    private Long serviceCategoryId;
    /**
     * 计量单位 字典维护
     */
    @ApiModelProperty(value = "计量单位 字典维护")
    @Size(max = 255, message = "计量单位 字典维护长度不能超过255")
    private String calUnit;
    /**
     * 最小预定量
     */
    @ApiModelProperty(value = "最小预定量")
    private Integer minAllocatedNum;
    /**
     * 服务部门id/服务商id/主场id
     */
    @ApiModelProperty(value = "服务部门id/服务商id/主场id")
    private Long serviceProviderId;
    /**
     * 供应商类型 字典维护 MENU_AFFILIATION
     */
    @ApiModelProperty(value = "供应商类型 字典维护 MENU_AFFILIATION")
    @Size(max = 255, message = "供应商类型 字典维护 MENU_AFFILIATION长度不能超过255")
    private String serviceProviderType;
    /**
     * 服务状态  #{DEFAULT:默认;ON_SHELVES:已上架;UNDER_SHELVES:已下架}
     */
    @ApiModelProperty(value = "服务状态  #{DEFAULT:默认;ON_SHELVES:已上架;UNDER_SHELVES:已下架}")
    private HomeServiceItemServiceStateEnum serviceState;
    /**
     * 审核状态 #{DEFAULT:默认;APPROVED:已审核;NOT_APPROVED:未审核}
     */
    @ApiModelProperty(value = "审核状态 #{DEFAULT:默认;APPROVED:已审核;NOT_APPROVED:未审核}")
    private HomeServiceItemAuditStateEnum auditState;
    /**
     * 场馆综合展会ID
     */
    @ApiModelProperty(value = "场馆综合展会ID")
    private Long exhibitionManageId;
}
